package com.wash.shoes.entity;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.model.BaseModel;
import com.wash.shoes.common.enums.FactoryShelvesStatusEnum;

import lombok.Data;

/**
 * <p>
 * 工厂货架格子
 * </p>
 */
@TableName("os_factoryshelves_rack_grid")
@Data
public class FactoryshelvesRackGridPo extends BasePersist {
    @TableId
    private String id;
    /**
     * 工厂id
     */
    @TableField("factory_id")
    private String factoryId;
    /**
     * 货架id
     */
    @TableField("factoryshelves_id")
    private String factoryshelvesId;
    /**
     * 货架格子编码
     */
    @TableField("show_code")
    private String showCode;
    /**
     * 订单的id 表示是否空闲
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 排序号
     */
    @TableField("sort_num")
    private Integer sortNum;
    /**
     * 状态0删除 1上架 2下架
     */
    private FactoryShelvesStatusEnum status;
    private String remark;
    @TableField("extend_info")
    private String extendInfo;
    /**
     * 用户的信息
     */
    @TableField(exist = false)
    private CustomInfo customInfo;

    @Data
    public static class CustomInfo extends BaseModel {
        // 姓名
        private String name;
        // 手机号
        private String phone;
        // 数据
        private List data;


        /**
         * 订单编号
         */
        private String orderNo;
    }
}
